package com.beikai.elasticsearch_demo.api.controller;/**
 * Created with IntelliJ IDEA.
 * User: beikai
 * Date: 2020/1/7
 * Time: 14:15
 * Description:
 */
import com.beikai.elasticsearch_demo.api.service.IDemoService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
@AllArgsConstructor
public class DemoController {

    final IDemoService demoService;


    @GetMapping("/test")
    public String test(){
        return "hello world!";
    }
}
